class RoomEntity {
	int userId1;
	String userId;
	String title;
	String cover;
	String nickname;
	int level;
	String status;
	int roomId;
	int person;
	String roomTitle;

	RoomEntity(
			{this.userId1,
				this.userId,
				this.cover,
				this.title,
				this.nickname,
				this.level,
				this.status,
				this.roomId,
				this.person,
				this.roomTitle});

	RoomEntity.fromJson(Map<String, dynamic> json) {
		userId1 = json['user_id'];
		userId = json['userId'];
		title = json['title'];
		cover = json['cover'];
		nickname = json['nickname'];
		level = json['level'];
		status = json['status'];
		person = json['person'];
		roomId = json['room_id'];
		roomTitle = json['room_title'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['user_id'] = this.userId1;
		data['userId'] = this.userId;
		data['cover'] = this.cover;
		data['title'] = this.title;
		data['nickname'] = this.nickname;
		data['level'] = this.level;
		data['person'] = this.person;
		data['status'] = this.status;
		data['room_id'] = this.roomId;
		data['room_title'] = this.roomTitle;
		return data;
	}
}